package edu.study.user.util;

import edu.study.api.common.constants.Constants;
import edu.study.api.common.json.JsonUtils;
import edu.study.common.util.HttpServletRequestUtil;
import edu.study.user.api.dto.UserDetailDto;

public class UserUtils {

	public static UserDetailDto getCurrentUser() {
		String cacheJson = (String) HttpServletRequestUtil.getHead(Constants.CURRENT_USER);
        UserDetailDto userDetailDto = JsonUtils.fromJson(cacheJson, UserDetailDto.class);
        return userDetailDto;
	}
}


